#!/bin/bash

BUILD_DIR=build

if [ -e ${BUILD_DIR} ]; then
  rm -r ${BUILD_DIR}
fi

mkdir ${BUILD_DIR}
cd ${BUILD_DIR}
cmake ..
make -j8

# adb push ./sharemeomory_vdec_cgi.cgi /demo/bin/boa/cgi-bin
# adb push ./start_fifo_cgi.cgi /demo/bin/boa/cgi-bin
# adb push ./stop_fifo_cgi.cgi /demo/bin/boa/cgi-bin
# adb push ./snap_rv1126_vdec_picture.cgi /demo/bin/boa/cgi-bin
# adb push ./scan_dir_cgi.cgi /demo/bin/boa/cgi-bin

adb push ./*.cgi /demo/bin/boa/cgi-bin
